﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using IQKS.AWP.BusinessObject;

namespace IQKS.AWP.DataAccessLayer
{
    public class CandidateBriefDetailsAuditorDAL
    {

        public DataSet GetCandidateBriefReviewByCandidateID(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = DataUtils.ExecuteDataset("Usp_GetCandidateBriefReviewByCandidateID", param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        
        
        }


        public object SetDeleteAssessorReviewDocument(params object[] param)
        {
            try
            {
                return DataUtils.ExecuteScalar("Usp_SetDeleteAssessorReviewDocument", param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public object SetAssessorQuery(params object[] param)
        {
            try
            {
                return DataUtils.ExecuteScalar("Usp_SetAssessorQuery", param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }


        public DataSet GetCandidateReviewDocumentByDocumentType(params object[] param)
        {
            DataSet objDs;

            try
            {
                objDs = DataUtils.ExecuteDataset("Usp_GetCandidateReviewDocumentByDocumentType", param);

            }
            catch (Exception exception)
            {
                throw new ApplicationException(exception.Message);
            }
            return objDs;
        }

        public object SetCandidateBriefReview(params object[] param)
        {
            try
            {
                return DataUtils.ExecuteScalar("Usp_SetAssessorReview", param);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

    }
}
